//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("MainForm.cpp", frmmain);
USEFORM("SelectNIC.cpp", frmNic);
USEFORM("About.cpp", frmAbout);
USEFORM("FilterSet.cpp", frmFilter);
USEFORM("AddFilter.cpp", frmAddFilter);
USEFORM("Tips.cpp", frmTips);
//---------------------------------------------------------------------------
#pragma comment( lib, "pcapwrapper.lib" )
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
	try
	{
		Application->Initialize();
		Application->Title = "NetEye Packet Sniffer";
		Application->CreateForm(__classid(Tfrmmain), &frmmain);
		Application->Run();
	}
	catch (Exception &exception)
	{
		Application->ShowException(&exception);
	}
	catch (...)
	{
		try
		{
			throw Exception("");
		}
		catch (Exception &exception)
		{
			Application->ShowException(&exception);
		}
	}
	return 0;
}
//---------------------------------------------------------------------------
